package com.wangY.test.excelToJava.entity;

public class Common {

	public static final String OFFICE_EXCEL_2003_POSTFIX = "xls";

	public static final String OFFICE_EXCEL_2010_POSTFIX = "xlsx";

	public static final String EMPTY = "";

	public static final String POINT = ".";

	public static final String LIB_PATH = "src/excelToJava/file";
	
	public static final String NOT_EXCEL_FILE = " : Not the Excel file!";
	
	public static final String PROCESSING = "Processing...";

	public static String getName(String name,Integer a){
		if (a==0) {
			
			String STUDENT_INFO_XLS_PATH = LIB_PATH
					+ "/"+name+  POINT + OFFICE_EXCEL_2003_POSTFIX;
			return STUDENT_INFO_XLS_PATH;
		}
		if (a==1) {
			String STUDENT_INFO_XLSX_PATH = LIB_PATH
			+ "/"+ name + POINT + OFFICE_EXCEL_2010_POSTFIX;
			return STUDENT_INFO_XLSX_PATH;
		}

	return NOT_EXCEL_FILE;
	}
}